<?php

namespace Xrfg\Api\Trading\Spot\Account\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class SpotAccountCapitalflowRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'coin_id' => ['nullable', 'exists:trading_coins,id'],
            'type' => ['nullable', Rule::in([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])],
            'start' => ['nullable', 'date'],
            'end' => ['nullable', 'date'],
        ];
    }
}
